.. _CW Structures: ========================== CW Structures ========================== .. toctree:: :maxdepth: 1 * :ref:`CWarp` * :ref:`CWeaponIdentification` * :ref:`CWeather` * :ref:`CWildSurge` * :ref:`CWnd` * :ref:`CWorldMap` * :ref:`CWorldMapArea` * :ref:`CWorldMapData` * :ref:`CWorldMapFile` * :ref:`CWorldMapHeader` * :ref:`CWorldMapLinks` .. _CWarp: CWarp ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Used by the :ref:`CWarp Class` +------------+----------------------+-------------------------+-------------+ | **Offset** | **Size (Total: 72)** | **Type** | **Field** | +------------+----------------------+-------------------------+-------------+ | 0x0 | 8 | :ref:`CObject` | baseclass_0 | +------------+----------------------+-------------------------+-------------+ | 0x8 | 8 | :ref:`CWarp`\* | pLastEngine | +------------+----------------------+-------------------------+-------------+ | 0x10 | 56 | :ref:`CObList` | lTimers | +------------+----------------------+-------------------------+-------------+ ---- .. _CWeaponIdentification: CWeaponIdentification ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+------------------+----------------+ | **Offset** | **Size (Total: 16)** | **Type** | **Field** | +------------+----------------------+------------------+----------------+ | 0x0 | 2 | unsigned __int16 | m_itemType | +------------+----------------------+------------------+----------------+ | | 2 | | ```` | +------------+----------------------+------------------+----------------+ | 0x4 | 4 | unsigned int | m_itemFlags | +------------+----------------------+------------------+----------------+ | 0x8 | 4 | unsigned int | m_itemFlagMask | +------------+----------------------+------------------+----------------+ | 0xC | 4 | unsigned int | m_attributes | +------------+----------------------+------------------+----------------+ ---- .. _CWeather: CWeather ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Used by the :ref:`CWeather Class` +------------+-----------------------+-------------------------------+----------------------------+ | **Offset** | **Size (Total: 368)** | **Type** | **Field** | +------------+-----------------------+-------------------------------+----------------------------+ | 0x0 | 1 | unsigned __int8 | m_bOverCast | +------------+-----------------------+-------------------------------+----------------------------+ | | 1 | | ```` | +------------+-----------------------+-------------------------------+----------------------------+ | 0x2 | 2 | unsigned __int16 | m_nLightningFreq | +------------+-----------------------+-------------------------------+----------------------------+ | 0x4 | 2 | unsigned __int16 | m_nCurrentWeather | +------------+-----------------------+-------------------------------+----------------------------+ | 0x6 | 2 | unsigned __int16 | m_nWeatherLevel | +------------+-----------------------+-------------------------------+----------------------------+ | 0x8 | 4 | unsigned int | m_nWeatherEndTime | +------------+-----------------------+-------------------------------+----------------------------+ | 0xC | 4 | unsigned int | m_nWeatherStageEndTime | +------------+-----------------------+-------------------------------+----------------------------+ | 0x10 | 4 | unsigned int | m_nWeatherDuration | +------------+-----------------------+-------------------------------+----------------------------+ | 0x14 | 4 | unsigned int | m_nLastTimeChecked | +------------+-----------------------+-------------------------------+----------------------------+ | 0x18 | 2 | unsigned __int16 | m_nWindLevel | +------------+-----------------------+-------------------------------+----------------------------+ | | 2 | | ```` | +------------+-----------------------+-------------------------------+----------------------------+ | 0x1C | 4 | unsigned int | m_rgbCurrentOverCastColor | +------------+-----------------------+-------------------------------+----------------------------+ | 0x20 | 4 | unsigned int | m_nDurationCounter | +------------+-----------------------+-------------------------------+----------------------------+ | | 4 | | ```` | +------------+-----------------------+-------------------------------+----------------------------+ | 0x28 | 32 | :ref:`CSnowStorm` | m_snowStorm | +------------+-----------------------+-------------------------------+----------------------------+ | 0x48 | 40 | :ref:`CRainStorm` | m_rainStorm | +------------+-----------------------+-------------------------------+----------------------------+ | 0x70 | 168 | :ref:`CFog` | m_fog | +------------+-----------------------+-------------------------------+----------------------------+ | 0x118 | 32 | :ref:`CSound` | m_sndRain | +------------+-----------------------+-------------------------------+----------------------------+ | 0x138 | 32 | :ref:`CSound` | m_sndWind | +------------+-----------------------+-------------------------------+----------------------------+ | 0x158 | 1 | unsigned __int8 | m_bWindOn | +------------+-----------------------+-------------------------------+----------------------------+ | 0x159 | 1 | unsigned __int8 | m_bUpgrading | +------------+-----------------------+-------------------------------+----------------------------+ | | 2 | | ```` | +------------+-----------------------+-------------------------------+----------------------------+ | 0x15C | 4 | unsigned int | m_nNextTimeToStartChecking | +------------+-----------------------+-------------------------------+----------------------------+ | 0x160 | 4 | unsigned int | m_nWindVolumeLevel | +------------+-----------------------+-------------------------------+----------------------------+ | 0x164 | 4 | unsigned int | m_nRainVolumeLevel | +------------+-----------------------+-------------------------------+----------------------------+ | 0x168 | 1 | unsigned __int8 | m_bReInitialize | +------------+-----------------------+-------------------------------+----------------------------+ | | 7 | | ```` | +------------+-----------------------+-------------------------------+----------------------------+ ---- .. _CWildSurge: CWildSurge ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+------------------+---------------------------+ | **Offset** | **Size (Total: 32)** | **Type** | **Field** | +------------+----------------------+------------------+---------------------------+ | 0x0 | 2 | unsigned __int16 | m_projectileOverride | +------------+----------------------+------------------+---------------------------+ | | 2 | | ```` | +------------+----------------------+------------------+---------------------------+ | 0x4 | 4 | unsigned int | m_projectileSpeedMod | +------------+----------------------+------------------+---------------------------+ | 0x8 | 4 | unsigned int | m_durationMod | +------------+----------------------+------------------+---------------------------+ | 0xC | 4 | unsigned int | m_levelMod | +------------+----------------------+------------------+---------------------------+ | 0x10 | 4 | unsigned int | m_bApplyEffects | +------------+----------------------+------------------+---------------------------+ | 0x14 | 4 | int | m_saveMod | +------------+----------------------+------------------+---------------------------+ | 0x18 | 4 | int | m_bClearTargetRestriction | +------------+----------------------+------------------+---------------------------+ | 0x1C | 4 | int | m_bClearSelfRestriction | +------------+----------------------+------------------+---------------------------+ ---- .. _CWnd: CWnd ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+-------------------------------+-------------+ | **Offset** | **Size (Total: 16)** | **Type** | **Field** | +------------+----------------------+-------------------------------+-------------+ | 0x0 | 8 | :ref:`CCmdTarget` | baseclass_0 | +------------+----------------------+-------------------------------+-------------+ | 0x8 | 8 | HWND__* | m_hWnd | +------------+----------------------+-------------------------------+-------------+ ---- .. _CWorldMap: CWorldMap ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Used by the :ref:`CWorldMap Class` +------------+----------------------+------------------------------------------+-----------+ | **Offset** | **Size (Total: 40)** | **Type** | **Field** | +------------+----------------------+------------------------------------------+-----------+ | 0x0 | 8 | :ref:`CResRef` | m_cResRef | +------------+----------------------+------------------------------------------+-----------+ | 0x8 | 8 | :ref:`CWorldMapHeader` | m_cHeader | +------------+----------------------+------------------------------------------+-----------+ | 0x10 | 8 | :ref:`CWorldMapData`\* | m_pData | +------------+----------------------+------------------------------------------+-----------+ | 0x18 | 8 | :ref:`CWorldMapArea`\** | m_ppAreas | +------------+----------------------+------------------------------------------+-----------+ | 0x20 | 8 | :ref:`CWorldMapLinks`\** | m_ppLinks | +------------+----------------------+------------------------------------------+-----------+ ---- .. _CWorldMapArea: CWorldMapArea ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+-----------------------+--------------------------+--------------------------+ | **Offset** | **Size (Total: 240)** | **Type** | **Field** | +------------+-----------------------+--------------------------+--------------------------+ | 0x0 | 8 | Array | m_resCurrentArea | +------------+-----------------------+--------------------------+--------------------------+ | 0x8 | 8 | Array | m_resOriginalArea | +------------+-----------------------+--------------------------+--------------------------+ | 0x10 | 32 | Array | m_strName | +------------+-----------------------+--------------------------+--------------------------+ | 0x30 | 4 | unsigned int | m_dwFlags | +------------+-----------------------+--------------------------+--------------------------+ | 0x34 | 4 | unsigned int | m_sequence | +------------+-----------------------+--------------------------+--------------------------+ | 0x38 | 4 | unsigned int | m_mapLocationX | +------------+-----------------------+--------------------------+--------------------------+ | 0x3C | 4 | unsigned int | m_mapLocationY | +------------+-----------------------+--------------------------+--------------------------+ | 0x40 | 4 | unsigned int | m_strLabel | +------------+-----------------------+--------------------------+--------------------------+ | 0x44 | 4 | unsigned int | m_strAreaName | +------------+-----------------------+--------------------------+--------------------------+ | 0x48 | 8 | Array | m_resAreaLoadMosaic | +------------+-----------------------+--------------------------+--------------------------+ | 0x50 | 4 | unsigned int | m_nNorthEdgeStartingLink | +------------+-----------------------+--------------------------+--------------------------+ | 0x54 | 4 | unsigned int | m_nNorthEdgeCount | +------------+-----------------------+--------------------------+--------------------------+ | 0x58 | 4 | unsigned int | m_nWestEdgeStartingLink | +------------+-----------------------+--------------------------+--------------------------+ | 0x5C | 4 | unsigned int | m_nWestEdgeCount | +------------+-----------------------+--------------------------+--------------------------+ | 0x60 | 4 | unsigned int | m_nSouthEdgeStartingLink | +------------+-----------------------+--------------------------+--------------------------+ | 0x64 | 4 | unsigned int | m_nSouthEdgeCount | +------------+-----------------------+--------------------------+--------------------------+ | 0x68 | 4 | unsigned int | m_nEastEdgeStartingLink | +------------+-----------------------+--------------------------+--------------------------+ | 0x6C | 4 | unsigned int | m_nEastEdgeCount | +------------+-----------------------+--------------------------+--------------------------+ | 0x70 | 128 | Array | nUnused | +------------+-----------------------+--------------------------+--------------------------+ ---- .. _CWorldMapData: CWorldMapData ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+-----------------------+--------------------------+---------------------+ | **Offset** | **Size (Total: 184)** | **Type** | **Field** | +------------+-----------------------+--------------------------+---------------------+ | 0x0 | 8 | Array | m_resMosaic | +------------+-----------------------+--------------------------+---------------------+ | 0x8 | 4 | unsigned int | m_nWidth | +------------+-----------------------+--------------------------+---------------------+ | 0xC | 4 | unsigned int | m_nHeight | +------------+-----------------------+--------------------------+---------------------+ | 0x10 | 4 | unsigned int | m_nMapID | +------------+-----------------------+--------------------------+---------------------+ | 0x14 | 4 | unsigned int | m_strTitle | +------------+-----------------------+--------------------------+---------------------+ | 0x18 | 4 | unsigned int | m_nStartCenteredOnX | +------------+-----------------------+--------------------------+---------------------+ | 0x1C | 4 | unsigned int | m_nStartCenteredOnY | +------------+-----------------------+--------------------------+---------------------+ | 0x20 | 4 | unsigned int | m_nAreas | +------------+-----------------------+--------------------------+---------------------+ | 0x24 | 4 | unsigned int | m_nAreasOffset | +------------+-----------------------+--------------------------+---------------------+ | 0x28 | 4 | unsigned int | m_nOffsetToLinks | +------------+-----------------------+--------------------------+---------------------+ | 0x2C | 4 | unsigned int | m_nLinks | +------------+-----------------------+--------------------------+---------------------+ | 0x30 | 8 | Array | m_resAreaIcons | +------------+-----------------------+--------------------------+---------------------+ | 0x38 | 4 | unsigned int | m_dwFlags | +------------+-----------------------+--------------------------+---------------------+ | 0x3C | 124 | Array | nUnused | +------------+-----------------------+--------------------------+---------------------+ ---- .. _CWorldMapFile: CWorldMapFile ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+------------------------------------------------------------------------+-------------+ | **Offset** | **Size (Total: 16)** | **Type** | **Field** | +------------+----------------------+------------------------------------------------------------------------+-------------+ | 0x0 | 16 | :ref:`CResHelper`\<:ref:`CResWorldMap`,1015> | baseclass_0 | +------------+----------------------+------------------------------------------------------------------------+-------------+ ---- .. _CWorldMapHeader: CWorldMapHeader ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+---------------------+--------------+--------------+ | **Offset** | **Size (Total: 8)** | **Type** | **Field** | +------------+---------------------+--------------+--------------+ | 0x0 | 4 | unsigned int | m_nMapCount | +------------+---------------------+--------------+--------------+ | 0x4 | 4 | unsigned int | m_nMapOffset | +------------+---------------------+--------------+--------------+ ---- .. _CWorldMapLinks: CWorldMapLinks ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+-----------------------+--------------------------+---------------------------+ | **Offset** | **Size (Total: 216)** | **Type** | **Field** | +------------+-----------------------+--------------------------+---------------------------+ | 0x0 | 4 | unsigned int | m_nArea | +------------+-----------------------+--------------------------+---------------------------+ | 0x4 | 32 | Array | m_entryPoint | +------------+-----------------------+--------------------------+---------------------------+ | 0x24 | 4 | unsigned int | m_nDistanceScale | +------------+-----------------------+--------------------------+---------------------------+ | 0x28 | 4 | unsigned int | m_dwLinkFlags | +------------+-----------------------+--------------------------+---------------------------+ | 0x2C | 8 | Array | m_resRandomEncounterArea0 | +------------+-----------------------+--------------------------+---------------------------+ | 0x34 | 8 | Array | m_resRandomEncounterArea1 | +------------+-----------------------+--------------------------+---------------------------+ | 0x3C | 8 | Array | m_resRandomEncounterArea2 | +------------+-----------------------+--------------------------+---------------------------+ | 0x44 | 8 | Array | m_resRandomEncounterArea3 | +------------+-----------------------+--------------------------+---------------------------+ | 0x4C | 8 | Array | m_resRandomEncounterArea4 | +------------+-----------------------+--------------------------+---------------------------+ | 0x54 | 4 | unsigned int | m_nEncounterProbability | +------------+-----------------------+--------------------------+---------------------------+ | 0x58 | 128 | Array | nUnused | +------------+-----------------------+--------------------------+---------------------------+